package com.agame;

import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;

public class GameView extends View
{
	private Game mGame = null;
	
	public GameView(Context context, AttributeSet attrs)
	{
		super(context, attrs);
	}

	public void setGame(Game game)
	{
		mGame = game;
	}
	
	@Override
	public void draw(Canvas canvas)
	{
		super.draw(canvas);
		Log.e("", "ondraw");
		mGame.draw(canvas);
	}

}
